<?php //pr($paginator) ?>
<?php if(isset($paginator)): ?>

<?php $pageController = key($paginator->params['paging']); # echo $pageController ?>

<?php $pageCount = $paginator->params['paging'][$pageController]['pageCount']; # echo $pageCount ?>

   <?php if($pageCount > 1): ?>
        <?php $paginator->options(array('url'=>$this->passedArgs)) ?>
        <ul>
        <?php if($paginator->hasPrev()): ?>
        <!-- <li class="pagArrow"><?php echo $paginator->first('⇐') ?></li> -->
        <li class="pagArrow"><?php echo $paginator->prev('←') ?></li>
        <?php endif ?>
        <li><?php echo $paginator->numbers(array('separator'=>'</li><li>')); ?></li>
        <?php if($paginator->hasNext()): ?>
        <li class="pagArrow"><?php echo $paginator->next('→') ?></li>
        <!-- <li class="pagArrow"><?php echo $paginator->last('⇒') ?></li> -->
        <?php endif ?>

	<?php if (isset($counter)): ?>
		<li class="counter"><?php echo $paginator->counter(array('separator'=>' из ')) ?></li>
	<?php endif ?>

        </ul>
   <?php endif ?>
<?php endif ?>
